import request from "@/utils/http"

/**
 * 审核报名
 * appointmentIndexCode 预约主键
 * approvalResult 审批结果 1 通过 2 未通过
 * approvalContent 审批内容 备注
 **/
export const approvalAppointment = (data={}) => {
    return request({
        url: '/flow/approvalAppointment',
        method: 'post',
        data
    })
}
/**
 * 审核活动
 * approvalType 预约类型 字典表appointment_type类型的 1文化讲堂 2群众活动 3课程 4共享奶奶
 * approvalIndexCode 审批活动主键
 * approvalResult 审批结果 1 通过 2 未通过
 * approvalContent	 审批内容 备注
 **/
export const approvalItem = (data={}) => {
    return request({
        url: '/flow/approvalItem',
        method: 'post',
        data
    })
}

export const signInActivities = (data={}) => {
    return request({
        url: `/flow/signInActivities?indexCode=${data.indexCode}&userId=${data.userId}`,
        method: 'post',
        data
    })
}

export const signInSave = (data={}) => {
    return request({
        url: `/flow/signIn`,
        method: 'post',
        data
    })
}
export const signInStatus = (data={}) => {
    return request({
        url: `/flow/signInStatus`,
        method: 'post',
        data
    })
}
